package com.service.samp.service;

import com.framework.bas.param.GeneralParam;
import com.framework.bas.util.PlmBasConstant;
import com.service.samp.util.AppSampConstant;
import com.service.samp.vo.Pagetest;
/**
 *
 */
public class SampTestService extends AbsSampService{
	
	
	
	
	public Object handle01(String serviceCode, GeneralParam param) {
//		BasLogLogin vo = (BasLogLogin)param.getValueObject(SogConstant.SERVICE_ID_SOG0001);
//		this.getSogBS().createUserSysLog(vo);
		return null;
	}

	public Object test(GeneralParam param) {
		System.out.println("jinle");
		return null;
	}
	public Object savePageTest(GeneralParam param){
		Pagetest pageTest = (Pagetest) param.getValueObject(AppSampConstant.PAGE_TEST_OBJ);
		pageTest.save();
		return PlmBasConstant.SERVICE_OPER_SUCCESS;
	}
	public Object updatePageTest(GeneralParam param){
		Pagetest pageTest = (Pagetest) param.getValueObject(AppSampConstant.PAGE_TEST_OBJ);
		pageTest.update(true);
//		throw new BasException("04041");
		return PlmBasConstant.SERVICE_OPER_SUCCESS;
	}
	public Object deletePageTest(GeneralParam param){
		
		Pagetest pageTest = (Pagetest) param.getValueObject(AppSampConstant.PAGE_TEST_OBJ);
		pageTest.delete();
		return PlmBasConstant.SERVICE_OPER_SUCCESS;
	}

	public Object handle03(String serviceCode, GeneralParam param) {
		return null;
	}
	public Object handle04(String serviceCode, GeneralParam param) {
		return null;
	}

}
